librbd: Do not instantiate TrimRequest template class
authorBoris Ranto <branto@redhat.com>
Thu, 7 Dec 2017 23:21:38 +0000 (00:21 +0100)
committerGaudenz Steinlin <gaudenz@debian.org>
Fri, 30 Nov 2018 15:49:02 +0000 (15:49 +0000)
commit7b4b93c1ba7c6990b330cb6a062a55f636733ef9
treee68a6eb59d661eb37abb5d7de68873a0705c503d
parent8958b250f42b467c934c76d36fdabc036a1e6fcd
librbd: Do not instantiate TrimRequest template class

We include TrimRequest.cc in librbd tests at two places:
 - operation/test_mock_TrimRequest.cc
 - operation/test_mock_ResizeRequest.cc

That causes linking errors when doing the builds because some of the
instantiated classes are defined twice.

We can fix this by not instantiating the template class in the
TrimReqeust.cc file when including it in the tests.

Signed-off-by: Boris Ranto <branto@redhat.com>
Gbp-Pq: Name armhf-ftbfs.patch
src/test/librbd/operation/test_mock_ResizeRequest.cc